import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  amount: [{ required: true, message: "充值金额为必填项", trigger: "blur" }]
});
export const addrRules = reactive(<FormRules>{
  // name: [{ required: true, message: "收货人为必填项", trigger: "blur" }],
  // mobile: [
  //   { required: true, message: "手机号为必填项", trigger: "blur" },
  //   { pattern: /^[1][3-9]\d{9}$/, message: "手机号格式不正确", trigger: "blur" }
  // ],
  // address: [{ required: true, message: "地址为必选项", trigger: "blur" }]
});
export const oemRules = reactive(<FormRules>{
  // oemName: [{ required: true, message: "oem名称为必填项", trigger: "blur" }],
  // oemModel: [{ required: true, message: "oem型号为必填项", trigger: "blur" }]
});
